<%@ page contentType="text/html"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="javax.ejb.*,javax.naming.*,java.rmi.*" %>
<%@ page import="jwanalytics.ejb.webhouse.*,jwanalytics.ejb.dataobjects.*,jwanalytics.web.*,javax.faces.context.*" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<f:view>
  <html>
    <head>
	  <base href="<%=basePath%>">
      <title>activities.jsp: the rocky mountains day camp activities.</title>
      <meta http-equiv="pragma" content="no-cache">
	  <meta http-equiv="cache-control" content="no-cache">
	  <meta http-equiv="expires" content="0">    
	  <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	  <meta http-equiv="description" content="This is my page">
	  <!--
	     <link rel="stylesheet" type="text/css" href="styles.css">
	  -->
    </head>
   <body bgcolor="#90EE90">  
   <h:form>
    <h2>Activities page.</h2>
		
		<p>This page is supposed to emulate the activity listing for the day camp business.  The more time the visitors spend here the more interested they are on the
		activities they can participate on while on the Rocky Mountains.  The activities are: granite wall climbing at Yosemite park; environmental awareness course at
		Lake Tahoe; etc; etc (just to give you a feeling for what you'd find on such a page).</p>
		
		<hr>
    
        <p>From here you can:</p>
        
        <ul>
        	<li>Go back to the <a href="faces/site1.jsp">site homepage</a>.</li>
        	<li>Go to an 
        	    <h:commandLink id="goToPage3" action="#{myBackingBean.decideOnPage}">
          			<h:outputText value="optimized page"/>
        		</h:commandLink>
        		. This page is one out of 3 pages which selected for you as the page that is the most likely to cause you to click the order link on it proceeding to the goal.jsp page.
        	</li>
        </ul>    

        <img src="http://www.geocities.com/aacesta/sitemap_v1.0.png" />

        <!--  Logging the page. -->
        <%
        String userSessionBeanName = "userSessionBean";
        if (session.getAttribute(userSessionBeanName) == null) {
        	session.setAttribute(userSessionBeanName, new UserSessionBean());
        }
		
		((UserSessionBean)session.getAttribute(userSessionBeanName)).logPageHit("activities.jsp", request, response);
		
        %>
      </h:form>
    </body>
  </html>
</f:view>
